package com.dt76.smallloanbackenduser.remote.hzp;

import com.dt76.smallloanbackenduser.hystrix.hzp.HContractTemplateHystrix;
import com.dt76.smallloanbackenduser.pojo.hzp.HContractTemplate;
import com.dt76.smallloanbackenduser.utils.Page;
import org.springframework.cloud.netflix.feign.FeignClient;
import org.springframework.stereotype.Component;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;

import java.util.List;

@Component
@FeignClient(name = "smallloan-backend-service", fallback = HContractTemplateHystrix.class)
public interface HContractTemplateRemote {
    @RequestMapping("/hzp/contractTemplate")
    List<HContractTemplate> qryAllHCT();
    @RequestMapping("/hzp/getPageHCT")
    Page qryPageHCT(@RequestParam("pageIndex") Integer pageIndex,
                    @RequestParam("pageSize") Integer pageSize);
}
